import java.util.Scanner;

public class textpta {
        public static void main(String[] args) {
            float[] score = new float[6];
            Scanner sc = new Scanner(System.in);
            for (int i = 0; i < 5; i++) {
                float j = sc.nextFloat();
                score[i] = j;
            }
            float num;
            for (int n = 0; n < 5; n++) {
                for (int j = n+1; j <5; j++) {
                    if(score[n]<score[j]){
                        num = score[j];
                        score[j] = score[n];
                        score[n] = num;
                    }
                }
                System.out.println(score[n]);
            }
        }
    }

